package com.cyz.user.userService.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyz.common.bean.Otc;
import com.cyz.common.enums.MyEnums;
import com.cyz.common.mapper.OtcMapper;
import com.cyz.user.userService.OtcService;
import com.cyz.common.utils.R;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 34928
* @description 针对表【otc】的数据库操作Service实现
* @createDate 2023-02-22 11:46:54
*/
@Service
public class OtcServiceImpl extends ServiceImpl<OtcMapper, Otc>
    implements OtcService {

    @Override
    public R queryOtc() {
        List<Otc> list = list();
        if (list.isEmpty()){
            R.error(MyEnums.QUERY_FAIL);
        }
        return R.success(list);
    }

}




